<?php
/**
 * Created by PhpStorm.
 * User: ansuir
 * Date: 2017/5/17
 * Time: 20:39
 */
if (isset($_GET['path'])) {
    $path = '.' . $_GET['path'];
    if (file_exists($path)) {
        readfile($path);
        exit(0);
    }
}

header("HTTP/1.1 404 Not Found");